package com.xiaohai.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xiaohai.projo.Course;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaohai.projo.dto.CourseDto;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author xiaohai
 * @since 2024-02-24
 */
@Mapper
public interface CourseMapper extends BaseMapper<Course> {

    Page<CourseDto> list(Page<CourseDto> page, String courseName, String teacherName);

    CourseDto getByid(String id);

    Page<CourseDto> listByStu(Page<CourseDto> page, String courseName, String teacherName, String account);

    Page<CourseDto> listByTea(Page<CourseDto> page, String courseName, String account);
}
